package net

import (
	"github.com/astaxie/beego"
	"monitor_agent/apps/base"
)

func init() {
	beego.Router("/net/connection", &Controller{}, "Get:Connections")
}

type Controller struct {
	base.Controller
}

func (o *Controller) Connections() {
	o.Data["json"] = Register.GetAll()
	o.ServeJSON()
}
